﻿using System.Web.Mvc;
using IterationLife.Extensions.ControllerBase;
using IterationLife.FootballTeaching.Queries;
using IterationLife.PlatformBackEnd.AppServices.Contracts.FootballTeachings;
using IterationLife.PlatformBackEnd.AppServices.Dtos.FootballTeachings;

namespace IterationLife.PlatformBackEnd.WebSite.Areas.FootballTeachings.Controllers {
    /// <summary>
    /// 球员位置控制器
    /// </summary>
    public class PlayerPositionController : FormControllerBase<PlayerPositionDto, PlayerPositionQuery> {
        /// <summary>
        /// 初始化球员位置控制器
        /// </summary>
        /// <param name="service">球员位置服务</param>
        public PlayerPositionController( IPlayerPositionService service ) 
            : base( service ) {
            PlayerPositionService = service;
        }

        /// <summary>
        /// 球员位置服务
        /// </summary>
        public IPlayerPositionService PlayerPositionService { get; private set; }


        /// <summary>
        /// 弹出层首页
        /// </summary>
        public ActionResult DialogIndex(string excludeIds)
        {
            return PartialView("Dialogs/Index", new PlayerPositionDto { ExcludeIds = excludeIds });
        }

    }
}